﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CoreColution.EntityDto.Basics
{
    /// <summary>
    /// 菜单信息
    /// </summary>
    public class MenuDto: _baseDto
    {
        [Required]
        [Display(Name = "菜单名称")]
        public string Name { get; set; }

        [Required]
        [Display(Name = "菜单地址")]
        public string Url { get; set; }

        [Required]
        [Display(Name = "自定义数据")]
        public string CustomData { get; set; }

        [Display(Name = "菜单图标")]
        public string Icon { get; set; }

        [Display(Name = "菜单类名称")]
        public string ClassName { get; set; }

        [Display(Name = "上级菜单Id")]
        public Guid? ParentId { get; set; }
    }

    /// <summary>
    /// 菜单搜索
    /// </summary>
    public class MenuSearch: PageList
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 上级菜单ID
        /// </summary>
        public Guid? ParentId { get; set; }
    }
}
